<?php

defined('_JEXEC') or die('Restricted access');  

$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');

?>
 
<div class="width-60 fltlft">
	<fieldset class="adminform">
		<legend>Info</legend>
			 <form enctype="multipart/form-data" action="<?php echo "index.php?option=".$option."&view=".$view; ?>" method="post" name="adminForm" id="adminForm">
			<table>				
				<tr>
					<td>
						<label aria-invalid="true">Title</label>				
					</td>
					<td>
						<input type="text" name="title" id="title" 
						value="<?php echo $this->item->title; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Alias</label>				
					</td>
					<td>
						<input type="text" name="alias" id="alias" 
						value="<?php echo $this->item->alias; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Meta Title</label>				
					</td>
					<td>
						<input type="text" name="meta_title" id="meta_title" 
						value="<?php echo $this->item->meta_title; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Tag</label>				
					</td>
					<td>
						<input type="text" name="tags" id="tags" 
						value="<?php echo $this->item->tags; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Resources</label>				
					</td>
					<td>
						<input type="text" name="resources" id="resources" 
						value="<?php echo $this->item->resources; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Published</label>	
					</td>
					<td>
						<?php echo JHTML::_('apkipas.published','published',$this->item->published); ?>
					</td>
				</tr>
			</table>
			<input type="hidden" name="controller" value="<?php echo $view; ?>" />
			<input type="hidden" name="option" value="<?php echo $option; ?>" />
			<input type="hidden" name="id" value="<?php echo (int)$this->item->id; ?>">
			<input type="hidden" name="product_id" value="<?php echo (int)$this->item->product_id; ?>">
			<input type="hidden" name="task" value="" />

			<?php echo JHTML::_( 'form.token' ); ?>
		</form>
	</fieldset>
</div>
	
<div class="width-40 fltrt">
	<fieldset class="panelform">
		<legend>Info</legend>
			Hit: <?php echo $this->item->hit; ?><br>
			Author: <?php echo $this->item->author ?><br>
			Created Date: <?php echo $this->item->created_date ?><br>
			Modified: <?php echo $this->item->modified ?></br>
			Modified Date: <?php echo $this->item->modified_date ?>
	</fieldset>
</div>

<div class="width-40 fltrt">
	<fieldset class="panelform">
		<legend>Download Link</legend>
			
	</fieldset>
</div>
